package com.lz.demo.log.logback;

import com.lz.demo.log.logback.subpackage.SubPackageTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 日志级别从高到低：error、warn、info、debug、trace
 * 另外，还有 off 和 all 表示关闭和记录所有日志
 */
public class LogbackTest {

    static final Logger LOGGER = LoggerFactory.getLogger(LogbackTest.class);

    public static void main( String[] args ) {
        LOGGER.debug("logback debug print");
        LOGGER.info("logback info print");
        LOGGER.warn("logback warn print");
        LOGGER.error("logback error print");

        SubPackageTest.test();
    }
}
